package com.atguigu.ssyx.search;

import com.atguigu.ssyx.client.product.ProductFeignClient;
import com.atguigu.ssyx.common.config.annotation.EnableAutoSwagger2Config;
import com.atguigu.ssyx.common.service.RabbitService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * @author 杨林
 * @create 2023-08-01 17:13 星期二
 * description:
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)   //取消数据源的自动配置
@EnableAutoSwagger2Config   //引入Swagger2相关配置
@EnableDiscoveryClient   //微服务发现
@EnableFeignClients(basePackages = "com.atguigu.ssyx.client.product")   //远程调用
@Import(RabbitService.class)   
public class SearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class,args);
    }
    
}
